package com.google.code.esper.spring;

import com.espertech.esper.client.EPAdministrator;
import com.espertech.esper.client.EPServiceProvider;
import org.springframework.core.convert.converter.Converter;

/**
 *
 */
public class ServiceProviderToAdministratorConverter implements Converter<EPServiceProvider, EPAdministrator> {

    public EPAdministrator convert(EPServiceProvider source) {
        return source.getEPAdministrator();
    }

}
